<?php
$chatbox_uuid = "chatbox".uniqid();
?>
<div class="chatbox-div" id="<?php echo $chatbox_uuid; ?>-container">
    <input type="hidden" id="<?php echo $chatbox_uuid; ?>-guest" value="<?php echo(($authorized? '0' : '1')); ?>" />

    Twój nick: <?php echo(($authorized? '<strong>'.$authorizedUser['username'].'</strong>' : '<input type="text" class="chatbox-nick-input" id="'.$chatbox_uuid.'-nick-input" value="" />')); ?>
    <div class="chatbox-data" id="<?php echo $chatbox_uuid; ?>-data">
        <?php echo Configure::read("Autoconfig.chatboxLoadingMessage"); ?>
    </div>
    <input type="text" class="chatbox-input" id="<?php echo $chatbox_uuid; ?>-input" value="">
    <input type="button" value="Wyślij" class="chatbox-send-button" id="<?php echo $chatbox_uuid; ?>-send-button" />
    <script type="text/javascript">
        loadChatBox('<?php echo $chatbox_uuid; ?>');
    </script>
    <a href="/chatbox/archive">Zobacz archiwum &gt;</a>
</div>
